<template>
  <basic-panel>
    <template #header>
      <span class='main-title'>排行榜 TOP 100</span>
    </template>
    <template>
      <div class="buttons">
        <a v-for="(item, index) in scores" :key="index + 1" class="button" :title="item.username">{{item.username}}</a>
      </div>
    </template>
  </basic-panel>
</template>
<script>
  import BasicPanel from '@components/common/panel/BasicPanel'
  export default {
    name: 'link',
    data() {
      return {
        scores:[]
      }
    },
    components: {
      BasicPanel,
    },
    // 获取link列表
    created() {
      this.$axios.getData.getScore(100).then(res => {
        this.scores = res.data.data === null ? [] : res.data.data
      })
    },
    methods: {

    },
  }
</script>

<style lang="scss" scoped>
  .main-title {
    @include main-title
  }

  .submit-box {
    .submit {
      @include basic-button;
      margin-left: 65px;
    }
    span{
      margin-left: 10px;
      a {
        color: #1E88E5;
        text-decoration: none;
        cursor: pointer;
      }
    }
  }

  .buttons {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .buttons .button:not(:last-child):not(.is-fullwidth) {
    margin-right: .5rem;
  }
  .buttons .button {
    margin-bottom: .5rem;
  }
  .buttons a:hover {
    color: #80bd01;
  }
  .button {
    background-color: #fff;
    border-color: #dbdbdb;
    border-width: 1px;
    color: #363636;
    cursor: pointer;
    justify-content: center;
    padding-bottom: calc(.5em - 1px);
    padding-left: 1em;
    padding-right: 1em;
    padding-top: calc(.5em - 1px);
    text-align: center;
    white-space: nowrap;
  }
  .button, .file-cta, .file-name, .input, .pagination-ellipsis, .pagination-link, .pagination-next, .pagination-previous, .select select, .textarea {
    -moz-appearance: none;
    -webkit-appearance: none;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: none;
    display: inline-flex;
    font-size: 1rem;
    height: 1.5em;
    justify-content: flex-start;
    line-height: 1.5;
    padding-bottom: calc(.5em - 1px);
    padding-left: calc(.75em - 1px);
    padding-right: calc(.75em - 1px);
    padding-top: calc(.5em - 1px);
    position: relative;
    vertical-align: top;
  }
</style>
